package com.ccll.constants;

/**
 * @author Seon
 * @date 2022/11/12 13:31
 */
public class GlobalConstant {
    /**
     * SpringSecurity的匿名用户的常量名
     */
    public static final String ANONYMOUS_USER = "anonymousUser";
    /**
     * redis的前键
     */
    public static final String USER_LOGIN = "login:";

    /**
     * 验证码
     */
    public static final String CAPTCHA = "captcha:";

    public static final Integer ADMIN_ROLE_ID = 1;
    public static final Integer USER_ROLE_ID = 2;

    /**
     * 文件类型
     */
    public static final String[] fileType = {"img", "music", "file", "other", "video", "zip"};

    public static final String[] img = {".png", ".jpg", ".jpeg", ".gif", "webp", "bmp", "ico"};
    public static final String[] video = {".mp4", ".avi", ".mov", ".mpeg"};
    public static final String[] music = {".mp3", ".flac", "aac", "ma4", "midi"};
    public static final String[] file = {".xlsx", ".xls", ".ppt", ".pdf", ".word", ".md", ".txt", ".docx", ".doc"};
    public static final String[] zip = {".rar", ".zip", ".7z"};
}
